package com.wanakiko.impldetails.mapper;

import com.wanakiko.impldetails.domain.UserInfo;
import org.apache.ibatis.annotations.Select;

import java.util.concurrent.CopyOnWriteArrayList;

public interface UserInfoMapper {

    /* 演示参数未找到异常：AND user_gender = #{userGender} */
    @Select("SELECT user_id, user_name, user_gender, user_age FROM user_info WHERE user_name LIKE #{userName}")
    CopyOnWriteArrayList<UserInfo> loadUserInfoAsList(String userName);

}
